package com.light.component;

import com.light.layout.ModalDialog;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.HBox;


public class PaymentQRCodePane extends ModalDialog {

    public PaymentQRCodePane() {
        header.setTitle("打赏作者");

        Image qrCode1 = new Image("/icons/weixin.jpg");
        ImageView qrCodeView1 = new ImageView(qrCode1);
        qrCodeView1.setFitWidth(300);
        qrCodeView1.setFitHeight(400);

        Image qrCode2 = new Image("/icons/zhifubao.png");
        ImageView qrCodeView2 = new ImageView(qrCode2);
        qrCodeView2.setFitWidth(300);
        qrCodeView2.setFitHeight(400);

        HBox hBox = new HBox(5, qrCodeView1, qrCodeView2);
        content.setBody(hBox);
    }
}
